<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
  <base href="/oa1/" />
  <title>信息详情</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link href="static/bootstrap-3.3.5/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div class="panel panel-primary">
  <div class="panel-heading">
    <h4 class="panel-title">信息详情</h4>
  </div>

  <div class="panel-body">
    <div class="col-md-12 text-center">
      <h2>${info.title}</h2>
    </div>
    <div class="col-md-12 text-right">
      <span>类别：${info.typeid == 1 ? '公司新闻' : '通知公告'}</span>
    </div>

    <div class="col-md-12" style="margin: 20px 0;">
      <div>${info.content}</div>
    </div>

    <div class="col-md-12">
      <c:if test="${not empty info.file}">
        附件：<a href="xx/information/downloadInfoFile?oid=${info.oid}">${info.file}</a>
      </c:if>
    </div>

    <div class="col-md-12 text-right" style="margin: 10px 0;">
      <p>发布人：
        <c:forEach items="${employees}" var="employee">
          <c:if test="${employee.oid eq info.creator}">
            ${employee.empName}
          </c:if>
        </c:forEach>
      </p>
      <p>发布时间：${info.publishDateStr}</p>
      <p>停止时间：${info.closeDateStr}</p>
      </p>
    </div>

    <div class="col-md-12">
      <a href="javascript:history.back()" class="btn btn-info">返回</a>
    </div>
  </div>
</div>
</body>
</html>